package com.kvest.pendingintenttest.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class HiddenService extends Service {
    @Override
    public void onCreate() {
        Log.d("KVEST_TAG", "create hidden service");
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d("KVEST_TAG", "TEST from hidden=" + intent.getStringExtra("TEST"));
        stopSelf();

        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        Log.d("KVEST_TAG", "destroy hidden service");
        super.onDestroy();
    }

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }


}
